package com.pojoin.cms.action;

import com.pojoin.cms.domain.User;
import com.pojoin.cms.service.UserService;

public class RightTopAction extends BaseActionSupport {

	private static final long serialVersionUID = 1L;
	
	private UserService userService;
	private User user;
	
	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}



	/**
	 * 获取用户的相关信息
	 * @return
	 */
	public String getUserInfo(){
		this.user = this.userService.getUserByUserName(this.getCurrentUserName());
		return this.success("rightop.jsp");
	}

}
